package com.baseLearn.api.web;

/**
 * Created by foxx on 2018/6/25
 * API 统一返回对象, 父类定义private int code属性，并不提供public构造方法
 * Done、Fail 两个子类继承其code属性。
 */
public class ApiResponse {
    private int code;

    protected ApiResponse(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
